]> dgit.raspbian.org Git - gnome-shell.git/commit
style: Handle sections in submenus
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 25 Jan 2022 14:47:23 +0000 (15:47 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 27 Jan 2022 22:54:14 +0000 (22:54 +0000)
commitc256ca443ef70f1c69a62afebeb33a6bbe48c38c
tree17864c758fe487518961b601f71340d31716e9b0
parent1cee7e676002a792718bd5a956f7783a8066e57f
style: Handle sections in submenus

If a menu item in a submenu is part of a section, it should have
rounded bottom corners if both the item and the section are the
last child of its respective parent.

To express that, add a new .popup-menu-section class and use that
to undo/redo the rounding for items inside a section.

It would be possible to do without a new class with a selector like

 > StBoxLayout > .popup-menu-item:last-child:hover,
 :last-child > .popup-menu-item:last-child:hover

but that's hardly better with its heavy reliance on implementation
details.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4940

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2126>
data/theme/gnome-shell-sass/widgets/_popovers.scss
js/ui/popupMenu.js